import java.util.*;


public class BigNum {

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while (in.hasNext()){
            String s = in.nextLine();
            String s1 = in.nextLine();
            System.out.println(solve(s,s1));
        }
    }
    public static String solve (String s, String t) {     //大数相加，可惜用例没有全部通过 最后一个超级大数超时了。  解决 不用String,改为Stringbuilder(特点：快、单线程，不安全)
        // write code here
        String h="";
        StringBuilder builder = new StringBuilder();
        int l =0;
        if(t.length()>s.length()){
            while(s.length()<t.length()){
                s=0+s;
            }
        }else{
            int c=s.length()-t.length();
            while(t.length()<s.length()){
                t=0+t;
            }
        }
        for(int i =t.length()-1;i>-1;i--){
            char a=s.charAt(i);
            char b=t.charAt(i);
            int p=0;
            p=Integer.parseInt(String.valueOf(a)) +Integer.parseInt(String.valueOf(b))+l;
            l=0;
            if(p>9){
                int c= p%10;
                builder.insert(0,c);
               // h=c + h;
                l=1;
            }else{
                builder.insert(0,p);
                //h=p+h;
            }
        }
        if(l==1){
            builder.insert(0,1);
            //h=1 +h;
        }
        return builder.toString();
    }
}